import $axios from '@/utils/request'

export function login(data) {
  const url = '/system/login'
  return $axios.post(url, data)
}

export function getInfo() {
  const url = '/system/getInfo'
  return $axios.get(url)
}

export function getCode() {
  const url = '/system/getCode?type=char'
  return $axios.get(url)
}

export function logout() {
  const url = '/system/logout'
  return $axios.get(url)
}